package com.cby.ssm.service.impl;

import com.cby.ssm.dao.PermissionDao;
import com.cby.ssm.entity.PermissionEntity;
import com.cby.ssm.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 13296 on 2017/7/20.
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    PermissionDao pdao;
    @Override
    public List<PermissionEntity> searchAllPermission() throws Exception {
        List<PermissionEntity> list = pdao.selectAllPermission();
        return list;
    }

    @Override
    public PermissionEntity searchPermission(String permissionId) throws Exception {
        return null;
    }

    @Override
    public List<PermissionEntity> searchPermissions(String key) throws Exception {
        return null;
    }

    @Override
    public PermissionEntity editPermission(PermissionEntity p) throws Exception {
        return null;
    }

    @Override
    public boolean deletePermission(String deleteId, String notDeleteId) throws Exception {
        return false;
    }

    @Override
    public void addPermission(String permissionName) throws Exception {

    }
}
